package com.ds.lens.data.vo.enums;

import lombok.Getter;

/**
 * Description
 *
 * @author nianjun
 * @create 2017-08-23 下午4:10
 **/

@Getter
public enum VoMessageEnum {

    SUCCESS(0, "success"),
    FAILED(-1, "failed"),

    NULL_OR_EMPTY_NAME(2, "名称为空或者null"),
    NULL_CONFIGURATION_TYPE(3, "配置的类型为null"),

    NULL_DEFAULT_CONFIGURATION_KEY(4001,"默认配置的key为null"),
    SAVE_DEFAULT_CONFIGURATION_FAILED(4002, "保存默认配置失败"),

    NULL_VALAD_ID(5000, "id为空或非数字类型"),
    NULL_VALAD_RULEID(5001, "ruleId为空或非数字类型"),

    ;

    private VoMessageEnum(Integer code,String message) {
        this.code = code;
        this.message = message;
    }

    private  Integer code;

    private String message;

}
